package cn.edu.bnu.bnuboy.xiaohua;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import cn.edu.bnu.bnuboy.db.Xiaohua;

import com.lidroid.xutils.DbUtils;
import com.lidroid.xutils.exception.DbException;

import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.Html;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class ReciteWordsActivity extends Activity {
	TextView en;
	TextView cn;
	Button strage;
	Button next;
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.words_list);
		cn = (TextView)this.findViewById(R.id.cn);
		Intent intent = this.getIntent();
		int id = intent.getIntExtra("id", 0);
		DbUtils db = DbUtils.create(this);
		try {
			Xiaohua x = db.findById(Xiaohua.class, id);
			cn.setText(Html.fromHtml(x.title));
		} catch (DbException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
}
